<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动</title>
    <style>
        .left,
        .right{
            width: 200px;
            height: 200px;
            background-color: pink;
            
        }
        .left{
            /* 左浮动 */
            float: left;
        }
        .right{
            /* 右浮动 */
            float: right;
            background-color: skyblue;
        }
        /* 
           加上这个的话脱标
        .buttom{
            height: 50px;
            background-color: purple;
        } */
    </style>
</head>
<body>
    <div class="left">左侧</div>
    <div class="right">右侧</div>
    <!-- <div class="buttom"></div> -->
</body>
</html>